﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace nwrole.lib {

    public enum PluginState {
        NotFound,
        Deactivated,
        Stopped,
        Starting,
        Running,
        Faulted
    }

    public enum ServiceState {
        NotFound,
        Deactivated,
        Stopped,
        Running
    }

    [DataContract]
    public class PluginData {
        [DataMember]
        public Guid Id { get; set; }
        [DataMember]
        public string Name { get; set; }
        /*[DataMember]
        public string Description { get; set; }
        [DataMember]
        public string Author { get; set; }
        [DataMember]
        public string Assembly { get; set; }*/
        [DataMember]
        public string ClassName { get; set; }
        [DataMember]
        public string DisplayName { get; set; }
        /*[DataMember]
        public DateTime Created { get; set; }
        [DataMember]
        public DateTime Updated { get; set; }
        [DataMember]
        public string Username { get; set; }
        [DataMember]
        public string Password { get; set; }*/
        [DataMember]
        public bool Enabled { get; set; }
        [DataMember]
        public bool RestartWhenFaulted { get; set; }
        /*[DataMember]
        public PluginState PluginState { get; set; }*/
        /*[DataMember]
        public ServiceState ServiceState { get; set; }*/
        /*[DataMember]
        public DateTime? Deployed { get; set; }*/
        /*[DataMember]
        public Dictionary<string, object> Configuration;*/
        /*[DataMember]
        public DateTime Added { get; set; }*/

        /*public PluginData() {
            Configuration = new Dictionary<string, object>();
        }*/

        
    }
}
